package com.yixing.tech.wms.entity;

import lombok.Data;
import org.bson.types.ObjectId;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author yixing tech
 * @since 1.0.0
 */
@Data
public class BaseSyncEntity implements Serializable {

    private ObjectId _id;

    @NotBlank
    protected String code;

    @NotNull
    protected Long syncTimeStamp;

    private Date createTime = new Date();
    private String tenantId;
    private int isDelete = 0;

}
